<?php
define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
ini_set('include_path', '../application/library:../application/models:' . ini_get('include_path'));
require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();


try {
	require_once '../application/bootstrap.php';
} catch (Exception $exception) {
	echo '<html><body><span style="text-align: center;">' . 'An exception occured while bootstrapping the application.';
	if (defined('APPLICATION_ENVIRONMENT') && APPLICATION_ENVIRONMENT != 'production') {
		echo '<br /><br />' . $exception->getMessage() . '<br />' . '<div align="left">Stack Trace:' . '<pre>' . $exception->getTraceAsString() . '</pre></div>';
	}
	echo '</span></body></html>';
	exit(1);
}


Zend_Controller_Front::getInstance()->dispatch();